babl: rearrange BablModel struct
authorØyvind Kolås <pippin@gimp.org>
Wed, 4 Oct 2017 14:47:39 +0000 (16:47 +0200)
committerØyvind Kolås <pippin@gimp.org>
Wed, 4 Oct 2017 14:47:41 +0000 (16:47 +0200)
Babl is doing casting that relies on BablFormat / BablModel having the same
layout for shared members.

babl/babl-model.h

index 96ff903633172b4a2676e082c0cb1cafbca60643..0862379380ac065160c397b3de1a374b6bd285ff 100644 (file)
@@ -30,8 +30,8 @@ typedef struct
   BablType        **type; /*< must be doubles,
                               used here for convenience in code */
   void             *data;    /* user-data, used for palette */
-  void             *model;   /* back pointer to model with sRGB space */
   const Babl       *space;
+  void             *model;   /* back pointer to model with sRGB space */
 } BablModel;
 
 #endif